package com.example.workroom.service;


import com.example.workroom.dto.PeoplePageQueryDTO;
import com.example.workroom.pojo.People;
import com.example.workroom.result.PageResult;

import java.util.List;

public interface PeopleService {
    /**
     * 新增成员
     * @param people
     */
    void save(People people);

    /**
     * 员工分页查询
     * @param peoplePageQueryDTO
     * @return
     */
    PageResult pageQuery(PeoplePageQueryDTO peoplePageQueryDTO);

    /**
     * 批量删除员工数据
     * @param ids
     */
    void deleteIds(List<Integer> ids);

    /**
     * 根据id查询员工
     * @param id
     * @return
     */
    People getById(Integer id);

    /**
     * 根据id修改员工
     * @param people
     */
    void update(People people);
}
